home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
snpd9611.zip
/
OS_ID.C
< prev
next >
Wrap
Text File
|
1996-11-24
|
599b
|
37 lines
.I 0 2
/* +++Date last modified: 24-Nov-1996 */
.I 22 4
/*
** get_os() - Determine OS in use
*/
.I 119 27
/*
** Give up a time slice to the OS
*/
void t_slice(int t_os)
{
union REGS t_regs;
switch (t_os)
{
case DOS :
break;
case OS2 :
case WIN3 :
case WINS :
t_regs.x.ax = 0x1680;
int86(0x2f,&t_regs,&t_regs);
break;
case DV :
t_regs.x.ax = 0x1000;
int86(0x15,&t_regs,&t_regs);
break;
} /* switch(t_os) */
}